#include "GuiEvent.h"
#include "UI/SoftKey.h"
#include "UI/EditBox.h"
#include "UsefullApi.h"

mmi_gui_struct guistruct;
struct list_windows *win_list;

struct list_control_id
{
	VMINT id;
	struct list_control_id* next;
};

static struct list_control_id* pControlIdList;

void GuiEventInit(void)
{
	memset(&guistruct, 0, sizeof(guistruct));
	win_list = NULL;
}

void RegisterDMControl(VMINT control)
{
	guistruct.record_controls[guistruct.count_total_controls] = control;
	guistruct.count_total_controls++;
}

void GuiDrawManager(VMINT iControl, void* pControlProperty)
{
	switch(iControl)
	{
	case DM_BOTTOM_SOFTKEY:
		break;
	default:
		break;
	}
}



void GuiTouchEventHandle(VMINT tevent, VMINT x, VMINT y)
{
	switch(tevent)
	{
	case GUI_PEN_DOWN:
		break;
	case GUI_PEN_MOVE:
		break;
	case GUI_PEN_UP:
		break;
	case GUI_PEN_LONG_DOWN:
		break;
	case GUI_PEN_DOUBLE_CLICK:
		break;
	case GUI_PEN_REPEAT:
		break;
	}
}

void SetControlFocus(struct common_control_property* control, VMINT flag)
{
	control->is_focused = flag;
}

VMINT GetControlFocus(struct common_control_property* control)
{
	return control->is_focused;
}



